<?php
/**
 * Created by PhpStorm.
 * User: yangfan
 * Date: 2019/12/3
 * Time: 6:58 PM
 */

namespace App\BO\Wechat\Meta;

use App\Utils\LjshMockTradeNoGeneratorUtil;
use Carbon\Carbon;

/**
 * 末支付的退款申请数据
 * Class NoPayRefundMeta
 * @package App\BO\Wechat\Meta
 */
class NoPayRefundMeta
{
    /**
     * @var string
     */
    private $refundAt;

    /**
     * 第三方退款流水号
     * @var string
     */
    private $refundId;

    public function __construct()
    {
        $this->refundAt = Carbon::now()->toDateTimeString();
        $this->refundId = LjshMockTradeNoGeneratorUtil::getMockRefundOutTradeNo();
    }

    /**
     * @return string
     */
    public function getRefundAt(): string
    {
        return $this->refundAt;
    }

    /**
     * @return bool
     */
    public function isRefundSuccess()
    {
        return true;
    }

    /**
     * 假的第三方退款流水号
     * @return string
     */
    public function getRefundId()
    {
        return $this->refundId;
    }
}
